package com.aidong.util;

/**
 * 爱币变动行为
 * 
 * @author john
 *
 */
public enum IntegralAction {
	order(1, "订单提成"), withdraw(2, "提现"),withdraw_failure(3,"提现失败");
	private int actionValue;
	private String actionName;

	private IntegralAction(int actionValue, String actionName) {
		this.actionValue = actionValue;
		this.actionName = actionName;
	}
	public int getActionValue() {
		return actionValue;
	}
	public String getActionName() {
		return actionName;
	}
	public static IntegralAction getAction(int actionValue){
		for(IntegralAction action: IntegralAction.values()){
			if(action.getActionValue()==actionValue){
				return action;
			}
		}
		return null;
	}
}
